

import fetch from '@/common/fetch'

//获取顶部导航栏 篮球录像 足球录像的分类数据
export const getNavListLiveBack = (typeCode) => fetch({
  url: "/web/sportNetWork/greatVideo/type/list",
  params: {
    typeCode
  }
})



//获取首页视频锦集
export const getHomeVideoGreat = () => fetch({
  url: "/web/sportNetWork/greatVideo/homePage/list"
})


//首页录像回放紧急
export const getHomeVideoBackList = () => fetch({
  url: "/web/sportNetWork/videoPlayback/homePage/list"
})


// 短视频页侧栏列表 

export const getSlideVideoBack = (params) => fetch({
  url: "/web/sportNetWork/greatVideo/sidebar/list",
  params
})


// 获取书数据榜联赛列表
export const getMatchList = () => fetch({
  url: "/match/web/match/comp/list",
})



//获取联赛积分榜数据

export const getHomeRank = (id) => fetch({
  url: `/match/web/match/homeRank/${id}`
})


//获取积分榜单模块数据
export const getScoreBoardData = (id, type) => fetch({
  url: `/match/web/match/homeRank/${id}`,
  params: {
    type
  }
})



//获取热门联赛列表
export const getHostMatchList = (num, eventType) => {

  const params = { num }
  if (eventType) params.eventType = eventType
  return fetch({
    url: "/web/sportNetWork/event/list",
    params
  })
}



//获取所有新闻类型
export const getNewsTypesList = () => fetch({
  url: "/news/web/news/type"
})


// 获取新闻列表 分页
export const getNewsList = (id, pageNum, pageSize) => fetch({
  url: `/news/web/news/page/${id}`,
  params: {
    pageNum,
    pageSize
  }
})


//获取新闻详情
export const getNewsDetail = (id) => fetch({
  url: `/news/web/news/${id}`
})



//推荐新闻资讯
export const getRecommendNews = (params) => fetch({
  url: "/news/web/news/recommend",
  params
})


// 获取热门联赛列表(分页) 足球直播 篮球直播
export const getNavLiveNavList = (params) => fetch({
  url: "/web/sportNetWork/event/page",
  params
})




// 获取热门队伍列表
export const getHotTeamData = (params) => fetch({
  url: "/web/sportNetWork/team/list",
  params
})







//获取足球比赛进程
export const getFootballLiveList = (params) => fetch({
  url: "/web/sportNetWork/match/football/schedule",
  params
})




//获取篮球比赛进程
export const getBasketballLiveList = (params) => fetch({
  url: "/web/sportNetWork/match/basketball/schedule",
  params
})



//录像回放 分页
export const getVideBackListPage = (params) => fetch({
  url: "/web/sportNetWork/videoPlayback/page",
  params
})




//精彩视频 分页
export const getVideoGreatVideoPage = (params) => fetch({
  url: "/web/sportNetWork/greatVideo/page",
  params
})


// 录像回放 侧边展示
export const getLiveBackSlide = (params) => fetch({
  url: "/web/sportNetWork/videoPlayback/sidebar/list",
  params
})



//获取录像回放详情
export const getLiveBackDetail = (videoId) => fetch({
  url: `/web/sportNetWork/videoPlayback/getDetailInfo/${videoId}`,
})


// 获取短视频详情
export const getShortVideoDetail = (videoId) => fetch({
  url: `/web/sportNetWork/greatVideo/getDetailInfo/${videoId}`
})